<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="author" content="姜启航">
    <title></title>
    <style>
        * {
            box-sizing: border-box;
        }

        body {
            background-color: #ccc;
        }

        .box {
            margin: 0 auto;
            width: 340px;
            height: 450px;
            background-color: white;
            position: relative;
        }

        .box .border {
            width: 340px;
            height: 450px;
            border: 5px solid orange;
            position: absolute;
            top: 0px;
            display: none;
        }

        .box img {
            width: 340px;
            height: 450px;
        }

        .list {
            width: 340px;
            height: 170px;
            margin: 0 auto;
            position: relative;
        }

        .left {
            position: absolute;
            width: 170px;
            height: 170px;
            overflow: hidden;
        }

        .right {
            position: absolute;
            left: 170px;
            top: 0px;
            overflow: hidden;
        }

        .list img {
            width: 170px;
            height: 170px;
        }
        .list .d-left {
            width: 170px;
            height: 170px;
            background-color: rgba(0, 0, 0, 0.5);
            position: absolute;
            top: 0;
            display: none;
        }

        .list .d-right {
            width: 170px;
            height: 170px;
            background-color: rgba(0, 0, 0, 0.5);
            position: absolute;
            top: 0;
            left: 0px;
            display: none;
        }

        .list p {
            position: absolute;
            width: 170px;
            height: 170px;
            top: 0;
            left: 0px;
            left: -170px;
        }
    </style>
</head>

<body>

    <div class="box">
        <img src="./img/1.png" alt="">
        <div class="border"></div>
    </div>
    <div class="list">
        <div class="left">
            <img src="./img/2.png" alt="">
            <div class="d-left"></div>
            <p>最具传奇浪漫色彩的欧洲经典设计，给你带来专属的魅力</p>
        </div>
        <div class="right">
            <img src="./img/3.png" alt="">
            <div class="d-right"> </div>
            <p>新款韩版微笑性感红唇上衣圆领女短袖修身T恤</p>
        </div>

    </div>

    <script src="../jquery.js"></script>
</body>
<ml>
    <script>
        $('.box').hover(function () {
            $('.border').fadeToggle(1000);
        });

        $('.left').hover(function () {
            $('.list .d-left').fadeTo(200, 1);
            $('.left p').animate({ left: 0 }, 200);

        }, function () {
            $('.list .d-left').fadeTo(200, 0);
            $('.left p').animate({ left: -170 }, 200);
        });


        $('.right').hover(function () {
            $('.list .d-right').fadeTo(200, 1);
            $('.right p').animate({ left: 0 }, 200);

        }, function () {
            $('.list .d-right').fadeTo(200, 0);
            $('.right p').animate({ left: -170 }, 200);
        });
    </script>